package com.bookmall.product.config;

import org.springframework.amqp.support.converter.Jackson2JsonMessageConverter;
import org.springframework.amqp.support.converter.MessageConverter;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Description:
 * @Author 胡菜鸡
 * @Create 2022-04-26-13:45
 */
@Configuration
public class RabbitConfig {
    /**
     * 更改存储方式为JSON存储
     * @author 胡菜鸡
     * @date 2022/4/21 13:39
     */
    @Bean
    public MessageConverter messageConverter(){
        return new Jackson2JsonMessageConverter();
    }
}
